package com.wcar.user.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wcar.common.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: four-wcar-idea
 * @description:
 * @author: 吴朝阳
 * @create: 2024-05-27 21:47
 **/
public interface RoleDao extends BaseMapper<Role> {
    @Select(value = "select  * from tb_role tr join tb_user_role tur on tr.role_id = tur.role_id where tur.user_id=#{userid}")
    List<Role> selectRoleByUserId(Integer userid);
}
